package com.hjc.springbootmovies.service.Impl;

import com.hjc.springbootmovies.entity.ModelFiml;
import com.hjc.springbootmovies.mapper.MappingFiml;
import com.hjc.springbootmovies.service.FimlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: HJC
 * Date: 2019/12/5
 * Time: 16:51
 * To change this template use File | Settings | File Templates.
 */
@Service
public class FimlServiceImpl implements FimlService {
    @Autowired
    private MappingFiml mappingFiml;
    @Override
    public List<ModelFiml> queryFiml( int fflag) {
        return mappingFiml.queryFiml(fflag);
    }

    @Override
    public int addFiml(ModelFiml modelFiml) {
        return mappingFiml.addFiml(modelFiml);
    }

    @Override
    public int deleteById(int fid,int fflag) {
        return mappingFiml.deleteById(fid,fflag);
    }

    @Override
    public int updateFiml(ModelFiml modelFiml) {
        return mappingFiml.updateFiml(modelFiml);
    }

    @Override
    public ModelFiml queryById(int fid) {
        return mappingFiml.queryById(fid);
    }
}
